home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3697 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  990 b 

  1. Path: mail2news.demon.co.uk!cae1-5.agt.gmeds.com
  2. From: "David S. Pesetsky 230-6088 AGT/8880" <iedsp@agt.gmeds.com>
  3. Newsgroups: comp.lang.c
  4. Subject: How come I can "see" strings stored in an executable?
  5. Date: Tue, 30 Jan 96 12:43:34 EST
  6. Message-ID: <9601301743.AA03771@cae1-5.agt.gmeds.com>
  7. X-NNTP-Posting-Host: cae1-5.agt.gmeds.com
  8. X-Mail2News-Path: dms1.agt.gmeds.com!cae1-5.agt.gmeds.com
  9.  
  10. Platform: IBM RISC6000 AIX3.2.5 X11R5
  11.  
  12. I have a simple c-code which uses the system call to execute
  13. a string in the bourne shell. Whether I  set the string like
  14.  
  15. char my_string[500]="sleep 10";
  16.  
  17. or like:
  18.  
  19. #define my_string "sleep 10"
  20.  
  21. once I compile, one only needs to edit into the executable to figure out the
  22. string. Makes for selling just the executable a little risky, especially if all it does
  23. is execute strings. Can I scramble the executable a bit more?
  24.  
  25. I can't subscribe to USENET (I post through e-mail), so please e-mail me your
  26. response, and sorry for any inconveniences. Thanks.
  27.  
  28. Dave
  29.